<template>
  <div class="login row jcenter acenter">
    <el-form :model="form" class="form">
      <el-form-item label="账号">
        <el-input v-model="form.account"></el-input>
      </el-form-item>
      <el-form-item label="密码">
        <el-input v-model="form.password"></el-input>
      </el-form-item>
      <el-button class="submit" type="primary" @click="() => {
        $router.push({
          name: 'home'
        })
      }">登录</el-button>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'login',
  data: () =>({
    form: {
      account: '',
      password: ''
    },
    name: ''
  }),
  mounted: function() {

  },
  methods: {
  }
}
</script>

<style lang="less" scoped>
  .login{
    background:  @color-primary;
    min-height: 100vh;
    .form{
      width: 20%;
      /deep/ .el-form-item__label{
        color: #333;
      }
      .submit {
        color: white;
        margin: 10px auto;
      }
    }
  }
</style>
